#include "WorkpieceFactory.h"

WorkpieceFactory::WorkpieceFactory()
{

}

MeasureWorkpiece* WorkpieceFactory::CreateWorkpiece(int type)
{
    switch (type) {
    case WORKPIECE_TYPE_E452:
        return new WorkpieceE452();
        break;
    case WORKPIECE_TYPE_E575:
        return new WorkpieceE575();
        break;
    case WORKPIECE_TYPE_E616:
        return new WorkpieceE616();
        break;
    case WORKPIECE_TYPE_E618:
        return new WorkpieceE618();
        break;
    default:
        break;
    }
}
